#pragma once

#ifndef DLL_TIMER_H
#define DLL_TIMER_H
#endif

//#include "bbAddon.h"

		
/* Timer */

class TCounter {
public:
	static float _MICRO_FREQ;
	static float _MICRO_COEF;
	static bool _DEFAULT_HDT_SUPPORT;
	static int _SUPPORT_ENABLE;
	static int _STARTTIME;
	
	TCounter();
	~TCounter(){;};
	int mStartTime;
	int mElasped;
	void Reset();
	int Time();
	int StartedAt();
	int Elasped();

};

static TCounter* _bbSystemClock = new TCounter();
inline int _MicroTime();

void _DeleteCounter(TCounter*counter);
TCounter*_SystemClock();

inline int DetectHDTimerSupport();